package com.qf.pojo;

import lombok.Data;

@Data
public class Goods {
    //id
    private Integer id;

    //名字
    private String name;

    //年龄
    private double price;

    //描述
    private String desc;

    //无参构造
    public Goods() {
    }

    /**
     * 有参构造
     */
    public Goods(Integer id, String name, double price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }
    public Goods(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Goods(Integer id, String name, double price, String desc) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.desc = desc;
    }
}
